home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / progtool / c / sozobon / sozlib15.zoo / sozdistr / examples / world2.c < prev    next >
C/C++ Source or Header  |  1995-02-15  |  508b  |  23 lines

  1. /* The inevitable hello world program...
  2.  *
  3.  * I found this one while reading news and modified it slightly
  4.  * in order to avoid the CR/LF problem.
  5.  * 
  6.  * The only difference to 'world.c': output should be faster
  7.  *
  8.  */
  9. #include <stdio.h>
  10.  
  11. float o=0.075,h=1.5,T,r,O,l,I;
  12. int x,L=80,s=3200;
  13.  
  14. void main()
  15. {
  16.     setvbuf(stdout, NULL, _IOLBF, 0);
  17.  
  18.     for( ;s%L||(h-=o,T= -2),s;4 -(r=O*O)<(l=I*I)|++x==L &&\
  19.                 printf("%.1s",(--s%L?(x<L ? --x%6:6):7)+"World! \n")&&\
  20.                 (O=I=l=x=r=0,T+=o/2) )
  21.         O=I*2*O+h,I=l+T-r;
  22. }
  23.